aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:pointersToFreeMutableVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
diff options
context:
space:
mode:
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:pointersToFreeMutableVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:pointersToFreeMutableVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected30
1 files changed, 29 insertions, 1 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:pointersToFreeMutableVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:pointersToFreeMutableVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
index 70ee5036..8f0b9f0f 100644
--- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:pointersToFreeMutableVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
+++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:pointersToFreeMutableVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
@@ -1,10 +1,34 @@
Compilation unit elements:
(
+ function-decl
+ "shed__runtime__gc_get_root_stack_index"
+ params=()
+ return-type=int
+)
+(
+ function-decl
+ "shed__runtime__gc_set_root_stack_index"
+ params=((param "gc_root_stack_index" int))
+ return-type=void
+)
+(
+ function-decl
+ "shed__runtime__gc_push_root"
+ params=((param "gc_root" int))
+ return-type=void
+)
+(
+ function-decl
+ "shed__runtime__gc_collect"
+ params=()
+ return-type=void
+)
+(
function
"shed__function__f__0"
visibility=private
- locals=((param "closurePointer__0" data-ptr) (val "local__a" data-ptr) (val "local__b" data-ptr))
+ locals=((param "closurePointer__0" data-ptr) (val "local__a" data-ptr) (val "local__b" data-ptr) (val "gcRootStackIndex__0" int))
return-type=int
body=(
(
@@ -21,6 +45,10 @@ Compilation unit elements:
layout=(struct ((struct (data-ptr int int int)) (struct (function-ptr (struct ()) (struct (data-ptr data-ptr))))))
offset=(1 2 1)
)
+ (call (local "gcRootStackIndex__0") "shed__runtime__gc_get_root_stack_index" ())
+ (call _ "shed__runtime__gc_set_root_stack_index" ((local "gcRootStackIndex__0")))
+ (call _ "shed__runtime__gc_push_root" ((local "local__a")))
+ (call _ "shed__runtime__gc_collect" ())
(return (local "local__a"))
)
)